package io.renren.common.constant;

/**
 * Created by czh on 2020/7/7 11:33
 *
 * @author chengzhenhua
 */
public enum CommonCode implements MsgCode {

    /**
     * 基础编码定义
     */
    OPER_BASE_SUCCESS("0000", "操作成功"),

    OPER_BASE_FAILD("-0000", "操作失败，系统繁忙请稍后重试！"),

    OPER_AUTH_FAILD("-0001", "认证超时，请重新获取认证！"),

    SERVICE_UPGRADING("-0002", "服务正在升级中，请耐心等待！"),

    OPER_NOTFOUND("404", "尚未找到对应的信息");

    private String code;
    private String message;

    CommonCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}